package 设计模式.代理模式.动态代理;

import java.util.Random;

public class Tank implements Movable{
  @Override
    public void move() {
        //坦克移动
        System.out.println("tank moving....");
        try {
            Thread.sleep(new Random().nextInt(5000));
            //随机产生1-5秒，模拟坦克在移动
        }catch (InterruptedException e)
        {
            e.printStackTrace();
        }
    }

}
